package com.squapsource.project_euler;

import java.math.BigInteger;

import com.squapsource.project_euler.utils.Factorial;

public class Problem20 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		BigInteger fact = Factorial.factorial(100);
		long sum =0;
		for (Character c : fact.toString().toCharArray())
			sum+=Integer.parseInt(c.toString());
		System.out.println(sum);

	}

}
